<%@ Register TagPrefix="cc1" Namespace="PHSRAG.Insight21.InsightWebControls" Assembly="PHSRAG.Insight21.InsightWebControls" %>
<%@ Register TagPrefix="cc2" Namespace="PHSRAG.WebControls" Assembly="PHSRAG.WebControls" %>

<%@ Page Language="c#" Inherits="PHSRAG.Insight21.Agreements.AgreementProjections"
	CodeFile="AgreementProjections.aspx.cs" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>Agreement Projections</title>
	<link href="../Insight21.css" type="text/css" rel="stylesheet" />
</head>
<body>
	<form method="post" id="AgreementProjectionsForm" runat="server">
		<table id="Overall" width="100%" class="Container">
			<tr id="Top">
				<td>
					<table class="Header" width="100%">
						<tr>
							<td>
								<cc1:Header ID="header" runat="server" OnNavigate="OnHeaderNavigate" />
							</td>
						</tr>
						<tr>
							<td>
								<cc1:AgreementsSubNavigation ID="agreementsSubNavigation" runat="server" EnableOverviewNavigation="False"
									OnNavigate="OnSubNavigate" />
							</td>
						</tr>
						<tr>
							<td>
								<cc1:AgreementDetailsSubNavigation ID="agreementDetailsSubNavigation" runat="server"
									OnNavigate="OnDetailsSubNavigate" />
							</td>
						</tr>
						<tr>
							<td>
								<cc2:BreadCrumb ID="breadCrumb" runat="server" OnNavigate="OnNavigate" />
							</td>
						</tr>
					</table>
					<asp:Panel ID="displaySection" runat="server">
						<table id="projectHeader" width="100%">
							<tr>
								<td>
									<table cellspacing="5" cellpadding="0" width="100%" style="background-color:#ffffff">
										<tr>
											<td>
												<cc1:ProjectHeaderBar ID="projectHeaderBar" runat="server"></cc1:ProjectHeaderBar>
											</td>
										</tr>
									</table>
								</td>
							</tr>
						</table>
						<table id="dynamicTable" class="Invisible" cellspacing="10">
							<tr>
								<td>
									<cc2:ActivityIndicator ID="activityIndicator" runat="server" ContainerID="dynamicTable">
									</cc2:ActivityIndicator>
								</td>
							</tr>
							<tr>
								<td>
									<cc2:Annunciator ID="annunciator" runat="server" ContainerID="dynamicTable"></cc2:Annunciator>
								</td>
							</tr>
						</table>
						<table class="PlaceBar">
							<tr>
								<td class="PageName">
									Projections</td>
								<td align="center">
									<cc1:RefreshDates ID="refreshDates" runat="server" SalaryAsOfDateVisible="True" POAPAsOfDateVisible="True"
										GLAsOfDateVisible="True" Visible="True"></cc1:RefreshDates>
								</td>
								<td align="right">
									<cc1:InsightDownloadBar ID="downloadbar" runat="server" OnDownloadToExcel="OnDownloadToExcel"
										OnDownloadToPDF="OnDownloadToPDF" OnFailedAction="OnDownloadFailed" OnSendByEmail="OnSendByEmail"
										useRootHost="true" />
								</td>
							</tr>
						</table>
						<table id="links" width="50%" border="0">
							<tr>
								<td>
									&nbsp;</td>
								<td>
									<a href="#ProjectionsTotals">Projections Totals</a></td>
								<td>
									<a href="#ProjectionsDetails">Projections Details</a></td>
								<td id="personnelForCurrentBudgetLink">
									<a href="#personnelForCurrentBudgetTitle">Personnel For Current Budget</a></td>
							</tr>
						</table>
						<table class="PaddedDataTitle" width="100%" id="ProjectionsTotals">
							<tr>
								<td>
									Projections Totals</td>
							</tr>
						</table>
						<table class="LikeDataGrid" id="projectionsTotal" cellspacing="0" cellpadding="0"
							width="100%" border="1">
							<tr class="DataGridHeader">
								<td style="width:160" colspan="1">
									<b>Budget Balance</b></td>
								<td style="width:160" colspan="1">
									<b>Current Obligations</b> Unpaid PO/AP Orders plus Committed Salary Expenses</td>
								<td style="width:160" align="left">
									<b>Estimated Ending Balance</b> Burn rate of existing expenses through end of budget period</td>
							</tr>
							<tr class="DataGridItem">
								<td style="width:160" colspan="1">
									<asp:Label ID="currentBalance" runat="server"></asp:Label></td>
								<td style="width:160" colspan="1">
									<asp:Label ID="currentObligations" runat="server"></asp:Label></td>
								<td style="width:160" colspan="1">
									<asp:Label ID="estimatedEndingBalance" runat="server"></asp:Label></td>
							</tr>
						</table>
						<table>
							<tr>
								<td>
									&nbsp;</td>
							</tr>
							<tr>
								<td>
									<asp:ImageButton ID="runProjections" runat="server" ImageUrl="../Images/b_runprojections.gif"
										OnClick="OnRunProjections" /></td>
							</tr>
							<tr>
								<td>
									&nbsp;</td>
							</tr>
						</table>
						<table class="PaddedDataTitle" width="100%" cellspacing="0" id="ProjectionsDetails">
							<tr>
								<td>
									&nbsp;Projections Details</td>
								<td align="right">
									Number Of Months Remaining in the Budget Period as of Last GL Post:
									<asp:Label ID="monthsRemaining" runat="server"></asp:Label>&nbsp;</td>
							</tr>
						</table>
						<table id="projectionDetailsTable" cellspacing="0" width="100%" onkeypress="return ClickButton(event, 'runProjections')">
							<tr>
								<td>
									<cc2:ExpandingDataGrid ID="projectionsDetails" runat="server" AutoGenerateColumns="False"
										CollapseText="<img border=no src=../images/collapseButton.gif>" CssClass="ExpandingGrid"
										ExpandText="<img border=no src=../images/expandButton.gif>" KeyColumnHeaderText="SortOrder"
										OnItemDataBound="OnProjectionsDetailsItemDataBound" OnItemExpanded="OnProjectionsDetailsItemExpanded"
										ShowFooter="True" Width="100%">
										<AlternatingItemStyle CssClass="ExpandingGridAltItem"></AlternatingItemStyle>
										<ItemStyle CssClass="ExpandingGridItem"></ItemStyle>
										<HeaderStyle CssClass="ExpandingGridHeader"></HeaderStyle>
										<FooterStyle CssClass="ExpandingGridFooter"></FooterStyle>
										<Columns>
											<asp:boundcolumn datafield="CategoryID" visible="False" readonly="True" headertext="CategoryID">
											</asp:boundcolumn>
											<asp:boundcolumn datafield="SortOrder" visible="False" readonly="True" headertext="SortOrder">
											</asp:boundcolumn>
											<asp:templatecolumn headertext="Expense Category">
												<itemtemplate>
														<asp:label id="category" runat="server" width="130"></asp:label>
													</itemtemplate>
												<footertemplate>
														<table width="100%" style="height:150px">
															<tr>
																<td class="footerCell">
																	<asp:label id="directCostsCaption" runat="server">
																		<strong>Direct Costs</strong></asp:label></td>
															</tr>
															<tr>
																<td>
																	<asp:label id="indirectCostsCaption" runat="server">
																		<strong>Indirect Costs</strong></asp:label></td>
															</tr>
															<tr class="totalCosts">
																<td>
																	<asp:label id="totalCostsCaption" runat="server">
																		<strong>Total Costs</strong></asp:label></td>
															</tr>
															<tr>
																<td class="footerCell">
																	<asp:label id="revenueCaption" runat="server">
																		<strong>Revenue</strong></asp:label></td>
															</tr>
															<tr>	
																<td>
																	<asp:label id="priorYearBalanceCaption" runat="server">
																		<strong>Prior Year Balance</strong></asp:label></td>
															</tr>
															<tr class="totalCosts">
																<td>
																	<asp:label id="cashBalanceCaption" runat="server">
																		<strong>Cash Balance</strong></asp:label></td>
															</tr>
														</table>
													</footertemplate>
											</asp:templatecolumn>
											<asp:templatecolumn headertext="Type">
												<itemtemplate>
														<asp:radiobuttonlist id="accountType" runat="server" width="148px" height="10px" repeatdirection="Horizontal"
															cssclass="innerRadioButton" visible="False">
															<asp:listitem value="1">Monthly</asp:listitem>
															<asp:listitem value="0">One Time</asp:listitem>
														</asp:radiobuttonlist>
													</itemtemplate>
												<footertemplate>
														<table width="100%" style="height:150px">
															<tr align="right">
																<td class="footerCell">&nbsp;</td>
															</tr>
															<tr align="right">
																<td>&nbsp;</td>
															</tr>
															<tr class="totalCosts" align="right">
																<td>&nbsp;</td>
															</tr>
															<tr align="right">
																<td class="footerCell">&nbsp;</td>
															</tr>
															<tr align="right">
																<td>&nbsp;</td>
															</tr>
															<tr class="totalCosts" align="right">
																<td>&nbsp;</td>
															</tr>
														</table>
													</footertemplate>
											</asp:templatecolumn>
											<asp:templatecolumn headertext="Budget For Current Period">
												<itemtemplate>
														<asp:label id="budgetForCurrentPeriod" runat="server" width="100%"></asp:label>
													</itemtemplate>
												<footertemplate>
														<table width="100%" style="height:150px">
															<tr align="right">
																<td class="footerCell">
																	<asp:label id="directBudget" runat="server"></asp:label>&nbsp;</td>
															</tr>
															<tr align="right">
																<td>
																	<asp:label id="indirectBudget" runat="server"></asp:label>&nbsp;</td>
															</tr>
															<tr class="totalCosts" align="right">
																<td>
																	<asp:label id="totalBudget" runat="server"></asp:label>&nbsp;</td>
															</tr>
															<tr align="right">
																<td class="footerCell">&nbsp;</td>
															</tr>
															<tr align="right">
																<td>&nbsp;</td>
															</tr>
															<tr class="totalCosts" align="right">
																<td>&nbsp;</td>
															</tr>
														</table>
													</footertemplate>
											</asp:templatecolumn>
											<asp:templatecolumn headertext="Expenses To Date In Period">
												<itemtemplate>
														<asp:label id="expenseToDate" runat="server" width="100%"></asp:label>
													</itemtemplate>
												<footertemplate>
														<table width="100%" style="height:150px">
															<tr align="right">
																<td class="footerCell">
																	<asp:label id="directExpense" runat="server"></asp:label></td>
															</tr>
															<tr align="right">
																<td>
																	<asp:label id="indirectExpense" runat="server"></asp:label></td>
															</tr>
															<tr class="totalCosts" align="right">
																<td>
																	<asp:label id="totalExpense" runat="server"></asp:label></td>
															</tr>
															<tr align="right">
																<td class="footerCell">
																	<asp:label id="revenue" runat="server"></asp:label></td>
															</tr>
															<tr align="right">
																<td>
																	<asp:label id="priorYearBalance" runat="server"></asp:label></td>
															</tr>
															<tr class="totalCosts" align="right">
																<td>
																	<asp:label id="cashBalance" runat="server"></asp:label></td>
															</tr>
														</table>
													</footertemplate>
											</asp:templatecolumn>
											<asp:templatecolumn headertext="Additional Amount">
												<itemstyle cssclass="DataGridEditRow"></itemstyle>
												<itemtemplate>
														<asp:textbox id="additionalAmount" runat="server" width="100%" visible="False"></asp:textbox>
													</itemtemplate>
												<footertemplate>
														<table width="100%" style="height:150px">
															<tr align="right">
																<td class="footerCell">&nbsp;</td>
															</tr>
															<tr align="right">
																<td>&nbsp;</td>
															</tr>
															<tr class="totalCosts" align="right">
																<td>&nbsp;</td>
															</tr>
															<tr align="right">
																<td class="footerCell">&nbsp;</td>
															</tr>
															<tr align="right">
																<td>&nbsp;</td>
															</tr>
															<tr class="totalCosts" align="right">
																<td>&nbsp;</td>
															</tr>
														</table>
													</footertemplate>
											</asp:templatecolumn>
											<asp:templatecolumn headertext="Encumbrances">
												<itemtemplate>
														<asp:label id="encumbrances" runat="server" width="100%"></asp:label>
													</itemtemplate>
												<footertemplate>
														<table width="100%" style="height:150px">
															<tr align="right">
																<td class="footerCell">
																	<asp:label id="directEncumbrances" runat="server"></asp:label>&nbsp;</td>
															</tr>
															<tr align="right">
																<td>
																	<asp:label id="indirectEncumbrances" runat="server"></asp:label>&nbsp;</td>
															</tr>
															<tr class="totalCosts" align="right">
																<td>
																	<asp:label id="totalEncumbrances" runat="server"></asp:label>&nbsp;</td>
															</tr>
															<tr align="right">
																<td class="footerCell">&nbsp;</td>
															</tr>
															<tr align="right">
																<td>&nbsp;</td>
															</tr>
															<tr class="totalCosts" align="right">
																<td>&nbsp;</td>
															</tr>
														</table>
													</footertemplate>
											</asp:templatecolumn>
											<asp:templatecolumn headertext="Balance">
												<itemtemplate>
														<asp:label id="balance" runat="server" width="100%"></asp:label>
													</itemtemplate>
												<footertemplate>
														<table width="100%" style="height:150px">
															<tr align="right">
																<td class="footerCell">
																	<asp:label id="directBalance" runat="server"></asp:label>&nbsp;</td>
															</tr>
															<tr align="right">
																<td>
																	<asp:label id="indirectBalance" runat="server"></asp:label>&nbsp;</td>
															</tr>
															<tr class="totalCosts" align="right">
																<td>
																	<asp:label id="totalBalance" runat="server"></asp:label>&nbsp;</td>
															</tr>
															<tr align="right">
																<td class="footerCell">&nbsp;</td>
															</tr>
															<tr align="right">
																<td>&nbsp;</td>
															</tr>
															<tr class="totalCosts" align="right">
																<td>
																	<asp:label id="additionalCashBalance" runat="server"></asp:label>&nbsp;</td>
															</tr>
														</table>
													</footertemplate>
											</asp:templatecolumn>
											<asp:templatecolumn headertext="Estimated Expenses<BR>Through End Of Budget Period">
												<itemtemplate>
														<asp:label id="estimatedExpenses" runat="server" width="100%"></asp:label>
													</itemtemplate>
												<footertemplate>
														<table width="100%" style="height:150px">
															<tr align="right">
																<td class="footerCell">
																	<asp:label id="directEstimatedExpenses" runat="server"></asp:label>&nbsp;</td>
															</tr>
															<tr align="right">
																<td>
																	<asp:label id="indirectEstimatedExpenses" runat="server"></asp:label>&nbsp;</td>
															</tr>
															<tr class="totalCosts" align="right">
																<td>
																	<asp:label id="totalEstimatedExpenses" runat="server"></asp:label>&nbsp;</td>
															</tr>
															<tr align="right">
																<td class="footerCell">&nbsp;</td>
															</tr>
															<tr align="right">
																<td>&nbsp;</td>
															</tr>
															<tr class="totalCosts" align="right">
																<td>&nbsp;</td>
															</tr>
														</table>
													</footertemplate>
											</asp:templatecolumn>
										</Columns>
									</cc2:ExpandingDataGrid></td>
							</tr>
						</table>
						<table>
							<tr>
								<td>
									<a href="#Top"><strong>Back To Top</strong></a></td>
							</tr>
						</table>
						<table class="PaddedDataTitle" id="personnelForCurrentBudgetTitle" width="100%" cellspacing="0">
							<tr>
								<td colspan="8">
									&nbsp;Personnel For Current Budget</td>
							</tr>
						</table>
						<table id="personnelForCurrentBudgetTable" cellspacing="0" width="100%" onkeypress="return ClickButton(event, 'runProjections')">
							<tr>
								<td>
									<asp:DataGrid ID="personnelForCurrentBudget" runat="server" AllowPaging="False" AllowSorting="True"
										AutoGenerateColumns="False" CssClass="DataGrid" OnItemCreated="OnPersonnelForCurrentBudgetItemCreated"
										OnItemDataBound="OnPersonnelForCurrentBudgetItemDataBound" OnSortCommand="OnPersonnelForCurrentBudgetSortCommand"
										ShowFooter="True" Width="100%">
										<AlternatingItemStyle CssClass="DataGridAlternatingItem"></AlternatingItemStyle>
										<ItemStyle CssClass="DataGridItem"></ItemStyle>
										<HeaderStyle CssClass="DataGridHeader"></HeaderStyle>
										<FooterStyle CssClass="DataGridFooter"></FooterStyle>
										<Columns>
											<asp:BoundColumn DataField="Name" SortExpression="Name" ReadOnly="True" HeaderText="Name"
												FooterText="Total:"></asp:BoundColumn>
											<asp:BoundColumn DataField="ProjectSalary" SortExpression="ProjectSalary" ReadOnly="True"
												HeaderText="Project Salary" DataFormatString="{0:c}" ItemStyle-HorizontalAlign="Right">
											</asp:BoundColumn>
											<asp:BoundColumn DataField="MonthlyRate" SortExpression="MonthlyRate" ReadOnly="True"
												HeaderText="Monthly Rate" DataFormatString="{0:c}" ItemStyle-HorizontalAlign="Right">
											</asp:BoundColumn>
											<asp:BoundColumn DataField="MonthsRemaining" SortExpression="MonthsRemaining" ReadOnly="True"
												HeaderText="Months Remaining" ItemStyle-HorizontalAlign="Right"></asp:BoundColumn>
											<asp:BoundColumn DataField="CommittedSalary" SortExpression="CommittedSalary" ReadOnly="True"
												HeaderText="Committed Salary" DataFormatString="{0:c}" ItemStyle-HorizontalAlign="Right">
											</asp:BoundColumn>
											<asp:BoundColumn DataField="FringeRate" SortExpression="FringeRate" ReadOnly="True"
												HeaderText="Fringe Rate" ItemStyle-HorizontalAlign="Right"></asp:BoundColumn>
											<asp:BoundColumn DataField="CommittedFringe" SortExpression="CommittedFringe" ReadOnly="True"
												HeaderText="Committed Fringe" DataFormatString="{0:c}" ItemStyle-HorizontalAlign="Right">
											</asp:BoundColumn>
											<asp:BoundColumn DataField="TotalCommitted" SortExpression="TotalCommitted" ReadOnly="True"
												HeaderText="Total Committed" DataFormatString="{0:c}" ItemStyle-HorizontalAlign="Right">
											</asp:BoundColumn>
										</Columns>
										<PagerStyle Visible="False"></PagerStyle>
									</asp:DataGrid></td>
							</tr>
						</table>
						<br />
					</asp:Panel>
				</td>
			</tr>
		</table>
	</form>
</body>
</html>
